<template>
	<div>
		<div style="display: inline-block;font-size:18px;margin-bottom: 15px;">
			<a href="#" @click="prev" style="text-decoration:none;font-size: 14px;">
				<icon-svg name="jiantou" style="width: 1.2em;height: 1.2em;position: relative;top: 0.3em;"></icon-svg>
				返回
			</a>
			<span style="display: inline-block;margin: 0 15px;color: #D9D9D9;">|</span>
			<span>用户详情</span>
		</div>
		<el-tabs v-model="activeName" @tab-click="handleClick">
			<el-tab-pane label="用户详情" name="first">
				<div class="detailtabel">
					<div class="table_main">
						<table>
							<tbody>
								<tr>
									<th>本月接单数量</th>
									<td>{{ tablenum.takeOrdersCount ? `${tablenum.takeOrdersCount}笔` : '0笔' }}</td>
									<th>本月充值金额</th>
									<td>{{ tablemoney.consume ? `${tablemoney.consume}元` : '0元' }}</td>
									<th>本月邀请数量</th>
									<td class="border-rt">{{ tablemoney.count ? `${tablemoney.count}人` : '0人' }}
									</td>
								</tr>
								<tr>
									<th>本月订单数量</th>
									<td>{{ tablemoney.myOrdersCount ? `${tablemoney.myOrdersCount}笔` : '0笔' }}</td>
									<th>本月提现金额</th>
									<td>{{ tablemoney.income ? `${tablemoney.income}元` : '0元' }}</td>
									<th>openId</th>
									<td class="border-rt">{{ tableData.openId ? tableData.openId : '未绑定' }}</td>
								</tr>
								<tr>
									<th>陪诊佣金比例</th>
									<td>
										{{ tableData.rate ? `${tableData.rate}` : '0' }}
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
											@click="ageChange(7,tableData.userId,tableData.rate)">修改</el-button>
									</td>
									<th>推广员佣金比例</th>
									<td>{{ tableData.zhiRate ? `${tableData.zhiRate}` : '0' }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
										@click="ageChange(0,tableData.userId,tableData.zhiRate)">修改</el-button>
									</td>
									<th>代理商佣金比例</th>
									<td class="border-rt">{{ tableData.feiRate ? tableData.feiRate : '0' }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
										@click="ageChange(1,tableData.userId,tableData.feiRate)">修改</el-button>
									</td>
								</tr>
								<tr>
									<th>邀请人邀请码</th>
									<td>
										{{ tableData.inviterCode }}
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
											@click="infoChange(tableData.inviterCode,4)">修改</el-button>
									</td>
									<th>余额</th>
									<td style="color: rgb(245, 108, 108)">
										{{ tablemoney.money ? `${tablemoney.money}元` : '0元' }}
										<el-button size="mini" :disabled="!isAuth('userList:updatejf')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="rechargenone(tableData.userId)">修改金额</el-button>
									</td>
									<th>保证金</th>
									<td class="border-rt">
										{{ tablemoney.safetyMoney ? `${tablemoney.safetyMoney }` : '0' }}
										<el-button size="mini" :disabled="!isAuth('userList:updatebzj')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="rechargenone(tableData.userId,3)">修改</el-button>
										( <span
											style="color: red;">{{tableData.isSafetyMoney==1?'已交保证金':'未交保证金'}}</span> )
									</td>
								</tr>
								<tr>
									<th>创建时间</th>
									<td>{{ tableData.createTime }}</td>
									<th>手机号</th>
									<td>
										{{ tableData.phone ? tableData.phone : '未绑定' }}
										<el-button size="mini" :disabled="!isAuth('userList:update')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="infoChange(tableData.phone,1)">修改</el-button>
									</td>
									<th>图像</th>
									<td class="border-rt">
										<img v-if="tableData.avatar==null" src="~@/assets/img/avatar.png" alt=""
											width="80" height="80">
										<img v-else :src="tableData.avatar" width="80" height="80" />
										<el-button size="mini" :disabled="!isAuth('userList:update')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="infoChange(tableData.avatar,2)">修改</el-button>
									</td>
								</tr>
								<tr>
									<th>微信名称</th>
									<td>
										{{ tableData.userName }}
										<el-button size="mini" :disabled="!isAuth('userList:update')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="infoChange(tableData.userName,3)">修改</el-button>
									</td>
									<th>地址</th>
									<td>{{ tableData.address ? tableData.address : '未绑定' }}</td>
									<th>支付宝姓名</th>
									<td class="border-rt">{{ tableData.zhiFuBaoName ? tableData.zhiFuBaoName : '未绑定' }}
									</td>
								</tr>
								<tr>
									<th>邀请码</th>
									<td>
										{{ tableData.invitationCode }}
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
											@click="infoChange(tableData.invitationCode,5)">修改</el-button>
									</td>
									<th>支付宝账号</th>
									<td>{{ tableData.zhiFuBao ? tableData.zhiFuBao : '未绑定' }}</td>
									<th>用户状态</th>
									<td class=" border-rt">
										<span v-if="tableData.status == 1 ">正常</span>
										<span v-if="tableData.status == 2 " style="color: #f56c6c;">禁用</span>
										<el-button size="mini" :disabled="!isAuth('userList:updateStatus')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="stateChange(tableData.userId)">更改状态</el-button>
									</td>
								</tr>
								<tr>
									<th>是否是推广员</th>
									<td>{{ tableData.isPromotion==1?'是':'否' }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"
										@click="ageChange(2,tableData.userId,tableData.isPromotion)">修改</el-button>
									</td>
									<th>是否是代理商</th>
									<td>{{ tableData.isAgent==1?'是':'否' }}
									<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"  :disabled="!isAuth('userList:update')"
										@click="ageChange(3,tableData.userId,tableData.isAgent)">修改</el-button>
									</td>
									<th>代理区域</th>
									<td class=" border-rt">
										<span>{{tableData.province}}{{tableData.city}}{{tableData.district}}</span>
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"  :disabled="!isAuth('userList:update')"
											@click="ageChange(5,tableData.userId)">修改</el-button>
									</td>
								</tr>
								<!-- <tr>
									<th>商铺电话</th>
									<td>{{ tableData.shopPhone }}</td>
									<th>营业开始时间</th>
									<td>{{ tableData.startTime }}</td>
									<th>营业结束时间</th>
									<td class=" border-rt">
										{{ tableData.endTime }}
									</td>
								</tr> -->
								<tr>
									<th>性别</th>
									<td>
										<span v-if="tableData.sex==0">未设置</span>
										<span v-if="tableData.sex==1">男</span>
										<span v-if="tableData.sex==2">女</span>
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"  :disabled="!isAuth('userList:update')"
											@click="sexChange(tableData.userId,tableData.sex)">修改</el-button>
									</td>
									<!-- <th>商铺主页图</th>
									<td>
										<el-popover placement="top-start" title="" trigger="hover">
											<img style="width: 50px; height: 50px" :src="tableData.shopImg" alt=""
												slot="reference">
											<img style="width: 300px; height: 300px" :src="tableData.shopImg" alt="">
										</el-popover>
									</td> -->
									<th>微信收款码</th>
									<td>
										<el-popover placement="top-start" title="" trigger="hover">
											<img style="width: 50px; height: 50px" :src="tableData.wxImg" alt=""
												slot="reference">
											<img style="width: 300px; height: 300px" :src="tableData.wxImg" alt="">
										</el-popover>
										<!-- <span v-if="tableData.wxImg==null"> - </span>
										<img v-else :src="tableData.wxImg" width="80" height="80" /> -->
									</td>
									<th>是否实名</th>
									<td class=" border-rt">
										<span v-if="tableData.isAuthentication==1">已实名</span>
										<span v-else>未实名</span>
									</td>
								</tr>
								<tr>
									<th>年龄</th>
									<td>
										<span v-if="tableData.age">{{tableData.age}}</span>
										<span v-else>未设置</span>
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"  :disabled="!isAuth('userList:update')"
											@click="ageChange(4,tableData.userId,tableData.age)">修改</el-button>
									</td>
									<th>编号</th>
									<td>
										{{ tableData.userId }}
									</td>
									<th>信用分</th>
									<td class="border-rt">
										{{ tableData.creditScore }}
										<el-button size="mini" v-if="tableData.creditScore!=null"
											:disabled="!isAuth('userList:update')"
											style="color: #4f9dec;background: #fff;border: none;"
											@click="ageChange2(tableData.userId, tableData.creditScore)">修改</el-button>
									</td>
								</tr>
								<tr>
									<th class="border-bt">师傅评分</th>
									<td class="border-bt">
										<span>{{tableData.finalScore}}</span>
										
									</td>
									<th class="border-bt">师傅接单状态</th>
									<td class="border-bt">
										<span v-if="tableData.shopState==0">下线</span>
										<span v-else-if="tableData.shopState==1">上线</span>
										<span v-else> - </span>
										<el-button size="mini" style="color: #4f9dec;background: #fff;border: none;"  :disabled="!isAuth('userList:update')"
											@click="ageChange(6,tableData.userId)">修改</el-button>
									</td>
									<th class="border-bt">师傅等级</th>
									<td class="border-bt border-rt">
										{{tableData.levelName}}
									</td>
								</tr>
							</tbody>
						</table>
					</div>
				</div>
			</el-tab-pane>
			<el-tab-pane label="提现记录" name="sixth">
				<el-table v-loading="tableDataLoading" :data="withdrawData.list">
					<el-table-column fixed prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="zhifubao" label="支付宝账号">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;"
								@click="updates(scope.row.userId)">{{scope.row.zhifubao ? scope.row.zhifubao : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="zhifubaoName" label="支付宝名称">
						<template slot-scope="scope">
							<span>{{scope.row.zhifubaoName ? scope.row.zhifubaoName : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="money" label="提现金额" width="100">
					</el-table-column>
					<el-table-column prop="state" label="状态" width="100" fixed="right">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 0">待转账</span>
							<span v-if="scope.row.state == 1">已转账</span>
							<span v-if="scope.row.state == -1">已退款</span>
						</template>
					</el-table-column>
					<el-table-column prop="refund" label="退款原因" width="220">
					</el-table-column>
					<el-table-column prop="createAt" label="申请时间" width="170">
					</el-table-column>
					<el-table-column prop="outAt" label="转账/退款时间" width="180">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange2" @current-change="handleCurrentChange2"
						:page-sizes="[5, 10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="withdrawData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="钱包明细" name="eighth">
				<el-table v-loading="tableDataLoading" :data="walletData.records">
					<el-table-column prop="id" label="编号" width="100"></el-table-column>
					<el-table-column prop="title" label="标题"></el-table-column>
					<el-table-column prop="content" label="内容"></el-table-column>
					<el-table-column prop="money" label="金额" width="100">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.type==2">- {{ scope.row.money }}</span>
							<span style="color: #006600;" v-if="scope.row.type==1">+ {{ scope.row.money }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange3" @current-change="handleCurrentChange3"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="walletData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="保证金明细" name="baozhengjin">
				<el-table v-loading="tableDataLoading" :data="baozhengjinData.records">
					<el-table-column prop="id" label="编号" width="100"></el-table-column>
					<el-table-column prop="title" label="标题"></el-table-column>
					<el-table-column prop="content" label="内容"></el-table-column>
					<el-table-column prop="money" label="金额" width="100">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.type==2">- {{ scope.row.money }}</span>
							<span style="color: #006600;" v-if="scope.row.type==1">+ {{ scope.row.money }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeBzj" @current-change="handleCurrentChangeBzj"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="baozhengjinData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="充值明细" name="seventh">
				<div style="display: inline-block;">
					<span>开始时间：</span>
					<el-date-picker style="width: 160px;margin-left: 10px;" v-model="startTime" align="right"
						type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择开始时间">
					</el-date-picker>&nbsp;&nbsp;&nbsp;
					<span>截止时间：</span>
					<el-date-picker style="width: 160px;margin-left: 10px;" v-model="endTime" align="right"
						type="datetime" format="yyyy-MM-dd" value-format="yyyy-MM-dd" placeholder="选择截止时间">
					</el-date-picker>
					<el-button style="margin-left:15px;" size="mini" type="primary" icon="document" @click="timeDate2">
						查询</el-button>
				</div>
				<el-table v-loading="tableDataLoading" :data="rechargeData.list">
					<el-table-column prop="id" label="编号" width="50"></el-table-column>
					<el-table-column prop="orderId" label="充值订单号" width="200"></el-table-column>
					<el-table-column prop="money" label="充值金额"></el-table-column>
					<el-table-column prop="userId" label="会员编号"></el-table-column>
					<el-table-column label="分类">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 1">app微信</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 2">微信公众号</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 3">微信小程序</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.classify == 4">支付宝</span>
						</template>
					</el-table-column>
					<el-table-column label="状态">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 0">待支付</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 1">支付成功</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.state == 2">支付失败</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="170">
					</el-table-column>
					<el-table-column prop="payTime" label="支付时间" width="170">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange4" @current-change="handleCurrentChange4"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="rechargeData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="推广员收益明细" name="tuiguangyuan">
				<el-table v-loading="tableDataLoading" :data="dailituiguangData.records">
					<el-table-column prop="id" label="编号" width="100"></el-table-column>
					<el-table-column prop="title" label="标题"></el-table-column>
					<el-table-column prop="content" label="内容"></el-table-column>
					<el-table-column prop="money" label="金额" width="100">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.type==2">- {{ scope.row.money }}</span>
							<span style="color: #006600;" v-if="scope.row.type==1">+ {{ scope.row.money }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeDl" @current-change="handleCurrentChangeDl"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="dailituiguangData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="代理商收益明细" name="dailishang">
				<el-table v-loading="tableDataLoading" :data="dailituiguangData.records">
					<el-table-column prop="id" label="编号" width="100"></el-table-column>
					<el-table-column prop="title" label="标题"></el-table-column>
					<el-table-column prop="content" label="内容"></el-table-column>
					<el-table-column prop="money" label="金额" width="100">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.type==2">- {{ scope.row.money }}</span>
							<span style="color: #006600;" v-if="scope.row.type==1">+ {{ scope.row.money }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeDl" @current-change="handleCurrentChangeDl"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="dailituiguangData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的优惠券" name="message">
				<el-table v-loading="tableDataLoading" :data="userData.records">
					<el-table-column prop="couponId" label="编号"></el-table-column>
					<el-table-column prop="couponName" label="优惠券名称">
							</el-table-column>
							<el-table-column prop="couponPicture" label="图片">
								<template slot-scope="scope">
									<img :src="scope.row.couponPicture" alt="" width="40" height="40">
								</template>
							</el-table-column>
							<el-table-column prop="money" label="优惠券金额">
							</el-table-column>
							<el-table-column prop="minMoney" label="最低消费">
							</el-table-column>
							<!-- <el-table-column prop="needIntegral" label="兑换积分">
					</el-table-column> -->
							<el-table-column prop="createTime" label="领取时间">
							</el-table-column>
							<el-table-column prop="expirationTime" label="过期时间">
							</el-table-column>
							<el-table-column prop="expirationTime" label="状态">
								<template slot-scope="scope">
									<span v-if="scope.row.status==0">待使用</span>
									<span v-else-if="scope.row.status==1">已使用</span>
									<span v-else-if="scope.row.status==2">已失效</span>
								</template>
							</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange1" @current-change="handleCurrentChange1"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="userData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<!-- <el-tab-pane label="我的访客" name="fangke">
				<el-table v-loading="tableDataLoading" :data="fangkeData.list">
					<el-table-column prop="userId" label="编号" width="80"></el-table-column>
					<el-table-column prop="userName" label="用户名">
						<template slot-scope="scope">
							<span style="color: #f56c6c;cursor:pointer"
								@click="updates(scope.row.userId)">{{ scope.row.userName }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="avatar" label="用户头像">
						<template slot-scope="scope">
							<img v-if="scope.row.avatar==null" src="~@/assets/img/avatar.png" alt="" width="40"
								height="40">
							<img v-else :src="scope.row.avatar" alt="" width="40" height="40">
						</template>
					</el-table-column>
					<el-table-column prop="updateTime" label="创建时间" width="160">
					</el-table-column>
					<el-table-column fixed="right" prop="status" label="操作" width="100">
						<template slot-scope="scope">
							<el-button size="mini" type="danger" :disabled="!isAuth('userList:delete')"
								@click="deleteuser1(scope.row)">删除</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange7" @current-change="handleCurrentChange7"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="fangkeData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane> -->
			<!-- <el-tab-pane label="我的粉丝" name="fensi">
				<el-table v-loading="tableDataLoading" :data="fensiData.list">
					<el-table-column prop="userId" label="编号"  width="80"></el-table-column>
					<el-table-column prop="userName" label="用户名">
						<template slot-scope = "scope">
							<span style = "color: #f56c6c;cursor:pointer" @click = "updates(scope.row.userId)">{{ scope.row.userName }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="avatar" label="用户头像">
						<template slot-scope = "scope">
							<img v-if = "scope.row.avatar==null" src = "~@/assets/img/avatar.png" alt = "" width = "40" height = "40">
							<img v-else :src = "scope.row.avatar" alt = "" width = "40" height = "40">
						</template>
					</el-table-column>
					<el-table-column prop="status" label="是否关注" align="center">
						<template slot-scope = "scope">
							<div v-if='scope.row.status==1' style="color: #0074D9;">相互关注<span style="color: #999;margin-left: 10px;cursor:pointer"  @click = "select(scope.row)">取消关注</span></div>
							<div v-if='scope.row.status==2' style="color: #0074D9;cursor:pointer" @click = "select(scope.row)">关注TA</div>
						</template>
					</el-table-column>
					<el-table-column prop="updateTime" label="创建时间" width="160">
					</el-table-column>
					<el-table-column fixed="right" prop="status" label="操作" width="100">
						<template slot-scope="scope">
							<el-button size = "mini" type = "danger" v-if='scope.row.status==1' :disabled = "!isAuth('userList:delete')" @click = "select(scope.row)">取消关注</el-button>
							<el-button size = "mini" type = "danger" v-if='scope.row.status==2' :disabled = "!isAuth('userList:delete')" @click = "select(scope.row)">关注TA</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange8" @current-change="handleCurrentChange8"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="fensiData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane> -->
			<!-- <el-tab-pane label="我的关注" name="guanzhu">
				<el-table v-loading="tableDataLoading" :data="guanzhuData.list">
					<el-table-column prop="userId" label="编号"  width="80"></el-table-column>
					<el-table-column prop="userName" label="用户名">
						<template slot-scope = "scope">
							<span style = "color: #f56c6c;cursor:pointer" @click = "updates(scope.row.userId)">{{ scope.row.userName }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="avatar" label="用户头像">
						<template slot-scope = "scope">
							<img v-if = "scope.row.avatar==null" src = "~@/assets/img/avatar.png" alt = "" width = "40" height = "40">
							<img v-else :src = "scope.row.avatar" alt = "" width = "40" height = "40">
						</template>
					</el-table-column>
					<el-table-column prop="status" label="是否关注" align="center">
						<template slot-scope = "scope">
							<div v-if='scope.row.status==1' style="color: #0074D9;">相互关注</div>
							<div v-if='scope.row.status==2' style="color: #0074D9;cursor:pointer">已关注</div>
						</template>
					</el-table-column>
					<el-table-column prop="updateTime" label="创建时间" width="160">
					</el-table-column>
					<el-table-column fixed="right" prop="status" label="操作" width="100">
						<template slot-scope="scope">
							<el-button size = "mini" type = "danger" :disabled = "!isAuth('userList:delete')" @click = "select(scope.row)">取消关注</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange9" @current-change="handleCurrentChange9"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="guanzhuData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane> -->
			<el-tab-pane label="我的订单" name="dingdan">
				<el-table v-loading="tableDataLoading" :data="dingdanData.records">
					<el-table-column prop="ordersId" label="编号" width="80" fixed="left"></el-table-column>
					<el-table-column prop="ordersNo" label="订单编号" fixed="left" width="150"></el-table-column>
					<el-table-column prop="ordersType" label="订单类型">
						<template slot-scope="scope">
							<span v-if="scope.row.ordersType==1">陪诊订单</span>
							<span v-if="scope.row.ordersType==2">陪护订单</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.hospitalName" label="医院名称" width="150">
					</el-table-column>
					<el-table-column prop="hospitalImg" label="医院照片" width="200">
						<template slot-scope="scope">
							<div v-if="scope.row.appointInformation&&scope.row.appointInformation.hospitalImg">
								<img v-for="(item,index) in scope.row.appointInformation.hospitalImg.split(',')" :key="index" :src="item" width="40"
									height="40" style="margin:3px" />
							</div>
						</template>
					</el-table-column>
					
					<el-table-column prop="appointInformation.departmentName" label="科室" width="150">
					</el-table-column>
					<el-table-column prop="appointInformation.type" label="服务类型">
						<template slot-scope="scope">
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==1">陪诊</span>
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==2">陪护</span>
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==3">助浴</span>
							<span v-if="scope.row.appointInformation&&scope.row.appointInformation.type==4">护理</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.serviceName" label="服务名称">
					</el-table-column>
					<el-table-column prop="appointInformation.tags" label="服务标签" width="160">
					</el-table-column>
					<el-table-column prop="payMoney" label="支付金额">
						<template slot-scope="scope">
							<span style="color: #f56c6c;">{{scope.row.payMoney}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="appointInformation.hospitalName" label="下单医院" width="100">
					</el-table-column>
					<el-table-column prop="appointInformation.departmentName" label="科室" width="100">
					</el-table-column>
					<el-table-column prop="appointInformation.patientInfo.realName" label="就诊人" width="100">
					</el-table-column>
					<el-table-column prop="appointInformation.patientInfo.phone" label="就诊人电话" width="120">
					</el-table-column>
					<el-table-column prop="appointInformation.patientInfo.relationship" label="关系" width="150">
					</el-table-column>
					<el-table-column prop="appointInformation.hopeTime" label="预约时间" width="160">
					</el-table-column>
					<el-table-column prop="appointInformation.remarks" label="备注" width="200">
					</el-table-column>
					<el-table-column prop="code" label="确认码">
					</el-table-column>
					<el-table-column prop="state" label="订单状态"  fixed="right">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.state==0">待支付</span>
							<span style="color: #E87D0D;" v-if="scope.row.state==1">进行中</span>
							<span style="color: #E87D0D;" v-if="scope.row.state==5">待服务</span>
							<span style="color: #009900;" v-if="scope.row.state==2">已完成</span>
							<span style="color: #999;" v-if="scope.row.state==3">已退款</span>
							<span style="color: #999;" v-if="scope.row.state==4">待接单</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange10" @current-change="handleCurrentChange10"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="dingdanData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<!-- <el-tab-pane label="我的发布" name="fabu">
				<el-table v-loading="tableDataLoading" :data="takeData.list">
					<el-table-column prop="id" label="编号" width="80" fixed="left">
					</el-table-column>
					<el-table-column prop="isRecommend" label="是否推荐" width="100">
						<template slot-scope="scope">
							<span v-if="scope.row.isRecommend==0">是</span>
							<span v-else>否</span>
						</template>
					</el-table-column>
					<el-table-column prop="homepageImg" label="封面图">
						<template slot-scope="scope">
							　　<img v-if="scope.row.homepageImg &&scope.row.homepageImg!=''" :src="scope.row.homepageImg"
								width="40" height="40" />
							<span v-else>暂无图片</span>
						</template>
					</el-table-column>
					<el-table-column prop="homepageImg" label="详情图" width="180">
						<template slot-scope="scope">
							　　<img v-for="(item,index) in scope.row.detailsImg" :key="index" :src="item" width="40"
								height="40" style="margin:3px" />
						</template>
					</el-table-column>
					<el-table-column prop="myLevel" label="标题" width="150" fixed="left">
					</el-table-column>
					<el-table-column prop="gameName" label="服务名称" width="150">
					</el-table-column>
					<el-table-column prop="oldMoney" label="发布价格" width="100">
					</el-table-column>
					<el-table-column prop="money" label="普通用户价格" width="100">
					</el-table-column>
					<el-table-column prop="memberMoney" label="会员价格" width="100">
					</el-table-column>
					<el-table-column prop="unit" label="单位" width="100">
					</el-table-column>
					<el-table-column prop="salesNum" label="销量" width="100">
						<template slot-scope="scope">
							<span v-if="scope.row.salesNum">{{scope.row.salesNum}}</span>
							<span v-else>0</span>
						</template>
					</el-table-column>
					<el-table-column prop="city" label="城市" width="100">
					</el-table-column>
					<el-table-column prop="money" label="服务地区" width="200">
						<template slot-scope="scope">
							<span>{{scope.row.region?scope.row.region:'不限地区'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="count" label="接单人数" width="140">
					</el-table-column>
					<el-table-column prop="orderScore" label="评分" width="100">
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180">
					</el-table-column>
					<el-table-column fixed="right" prop="status" label="状态" width="100">
						<template slot-scope="scope">
							<span style="color: #4f9dec;" v-if="scope.row.status === 0 ">进行中</span>
							<span style="color: red;" v-if="scope.row.status === 1 ">待审核</span>
							<span style="color: #999;" v-if="scope.row.status === 2 ">已取消</span>
							<span style="color: #999;" v-if="scope.row.status === 3 ">拒绝</span>
						</template>
					</el-table-column>
					<el-table-column label="操作" prop="id" width="120" fixed='right' align="center">
						<template slot-scope="scope">
							<el-button size="mini" type="primary" v-if="scope.row.status != 1 "
								@click="plCompile(scope.row)">评论
							</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange5" @current-change="handleCurrentChange5"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="takeData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane> -->
			<el-tab-pane label="我的接单" name="jiedan">
				<el-table v-loading="tableDataLoading" :data="jiedanData.records">
					<el-table-column prop="ordersId" label="编号" width="80" fixed="left"></el-table-column>
					<el-table-column prop="ordersNo" label="订单编号" fixed="left"></el-table-column>
					<el-table-column prop="gameName" label="服务名称" width="200" fixed="left">
						<template slot-scope="scope">
							{{scope.row.appointInformation.serviceName}}{{scope.row.appointInformation.hospitalName}}订单
						</template>
					</el-table-column>
					<el-table-column prop="money" label="地址" width="200">
						<template slot-scope="scope">
							<span>{{scope.row.province}}{{scope.row.city}}{{scope.row.district}}{{scope.row.detailsAddress}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="payMoney" label="支付金额" width="160"></el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160"></el-table-column>
					<el-table-column fixed="right" prop="state" label="状态" width="100">
						<template slot-scope="scope">
							<span v-if="scope.row.state === '0' ">待支付</span>
							<span v-if="scope.row.state === '1' ">进行中</span>
							<span v-if="scope.row.state === '2' ">已完成</span>
							<span v-if="scope.row.state === '3' ">已取消</span>
							<span v-if="scope.row.state === '4' ">带抢单</span>
							<span v-if="scope.row.state === '5' ">待服务</span>

						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange6" @current-change="handleCurrentChange6"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="jiedanData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<!-- 我的投诉 -->
			<el-tab-pane label="我的投诉" name="tousu">
				<el-table v-loading="tableDataLoading" :data="tousuData.list">
					<el-table-column prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="userName" label="被投诉用户">
						<template slot-scope="scope">
							<div style="color: #0066CC;cursor: pointer;" @click="updates(scope.row.byUserId)">
								{{scope.row.byUserName}}
							</div>
						</template>
					</el-table-column>
					<!-- <el-table-column prop="platform" label="投诉类型">
						<template slot-scope="scope">
							<div v-if="scope.row.platform==1">聊天投诉</div>
							<div v-if="scope.row.platform==2">用户投诉</div>
							<div v-if="scope.row.platform==3">动态投诉</div>
							<div v-if="scope.row.platform==4">服务投诉</div>
						</template>
					</el-table-column> -->
					<el-table-column prop="content" label="投诉内容" width="200">
					</el-table-column>
					<el-table-column prop="image" label="图片" width="150">
						<template slot-scope="scope">
							<div v-for="(item,index) in scope.row.image" :key="index"
								style="display: inline-block; margin: 3px;">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="item" alt="" slot="reference">
									<img style="width: 300px; height: auto" :src="item" alt="">
								</el-popover>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="status" label="状态">
						<template slot-scope="scope">
							<div v-if="scope.row.status==0">待审核</div>
							<div v-else>已审核</div>
						</template>
					</el-table-column>
					<el-table-column prop="status" label="处理结果">
						<template slot-scope="scope">
							<div v-if="scope.row.status==0">待处理</div>
							<div v-if="scope.row.status==1">不处理</div>
							<div v-if="scope.row.status==2">已封号</div>
							<div v-if="scope.row.status==3">已删除</div>
						</template>
					</el-table-column>
					<el-table-column prop="auditContent" label="审核内容">
					</el-table-column>
					<el-table-column prop="createAt" label="创建时间">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange23" @current-change="handleCurrentChange23"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next" :total="tousuData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<!-- 我的团队 -->
			<el-tab-pane label="我的团队" name="tuandui">
				<div>
					<span>类型：</span>
					<el-select v-model="types" style="width:150px;margin-left: 10px;" @change="animeDat(types)">
						<el-option v-for="item in typesList" :key="item.type" :label="item.name" :value="item.type">
						</el-option>
					</el-select>&nbsp;&nbsp;&nbsp;
				</div>
				<el-table v-loading="tableDataLoading" :data="tuanduiData.list">
					<el-table-column fixed prop="userId" label="id" width="80">
					</el-table-column>
					<el-table-column prop="nickName" label="用户昵称" width="150">
						<template slot-scope="scope">
							<div style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.userId)">
								{{scope.row.userName ? scope.row.userName : '未绑定'}}
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="avatar" label="用户头像">
						<template slot-scope="scope">
							<div style="margin-top: 5px;" v-if="scope.row.avatar">
								<el-popover placement="top-start" title="" trigger="hover">
									<img style="width: 50px; height: 50px" :src="scope.row.avatar" alt=""
										slot="reference">
									<img style="width: 200px; height: 200px" :src="scope.row.avatar" alt="">
								</el-popover>
							</div>
							<div v-else><img style="width: 50px; height: 50px" src="~@/assets/img/avatar.png" alt=""
									slot="reference"></div>
						</template>
					</el-table-column>
					<el-table-column prop="money" label="元">
					</el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="160">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange12" @current-change="handleCurrentChange12"
						:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="tuanduiData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我的评价" name="pinglun">
				<!-- <div style="margin:2% 0;display: inline-block;">
					<span>是否满意：</span>
					<el-select v-model="campus" style="width:150px;margin-left: 10px;" @change="animeDat2(campus)">
						<el-option v-for="item in homeData1" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</el-select>&nbsp;&nbsp;&nbsp;
				</div> -->
				<el-table v-loading="tableDataLoading" :data="autonymData.records">
					<el-table-column prop="evaluateId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="userName" label="被评论用户" width="120">
						<template slot-scope="scope">
							　<span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.riderUserId)">
								{{scope.row.rideName?scope.row.rideName:'未绑定'}}
							</span>
						</template>
					</el-table-column>
					<el-table-column prop="evaluateMessage" label="评价内容">
					</el-table-column>
					<el-table-column prop="evaluateImg" label="评论图片">
						<template slot-scope="scope">
							<div v-if="scope.row.evaluateImg">
								<span v-for="(item,index) in scope.row.evaluateImg.split(',')" :key="index">
									<el-popover placement="top-start" title="" trigger="hover">
										<img style="width: 50px; height: 50px;margin: 3px;" :src="item" alt=""
											slot="reference">
										<img style="width: 200px; height: 200px" :src="item" alt="">
									</el-popover>
								</span>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="satisfactionFlag" label="评分" width="160">
						<template slot-scope="scope">
							<span style="color: red;cursor: pointer;" v-if="scope.row.satisfactionFlag==1">非常差</span>
							<span style="color: orange;cursor: pointer;" v-if="scope.row.satisfactionFlag==2">差</span>
							<span style="color: #999;cursor: pointer;" v-if="scope.row.satisfactionFlag==3">一般</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.satisfactionFlag==4">满意</span>
							<span style="color: #4f9dec;cursor: pointer;"
								v-if="scope.row.satisfactionFlag==5">非常满意</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="评价时间" width="160">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangePj" @current-change="handleCurrentChangePj"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="autonymData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="我收到的评价" name="pinglunSd">
				<!-- <div style="margin:2% 0;display: inline-block;">
					<span>是否满意：</span>
					<el-select v-model="campus" style="width:150px;margin-left: 10px;" @change="animeDat2(campus)">
						<el-option v-for="item in homeData1" :key="item.value" :label="item.label" :value="item.value">
						</el-option>
					</el-select>&nbsp;&nbsp;&nbsp;
				</div> -->
				<el-table v-loading="tableDataLoading" :data="autonymData.records">
					<el-table-column prop="evaluateId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="userName" label="评论用户" width="120">
						<template slot-scope="scope">
							　<span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.userId)"
								v-text="scope.row.userName"></span>
						</template>
					</el-table-column>
					<el-table-column prop="evaluateMessage" label="评价内容">
					</el-table-column>
					<el-table-column prop="evaluateImg" label="评论图片">
						<template slot-scope="scope">
							<div v-if="scope.row.evaluateImg">
								<span v-for="(item,index) in scope.row.evaluateImg.split(',')" :key="index">
									<el-popover placement="top-start" title="" trigger="hover">
										<img style="width: 50px; height: 50px;margin: 3px;" :src="item" alt=""
											slot="reference">
										<img style="width: 200px; height: 200px" :src="item" alt="">
									</el-popover>
								</span>
							</div>
						</template>
					</el-table-column>
					<el-table-column prop="satisfactionFlag" label="评分" width="160">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;"
								v-if="scope.row.satisfactionFlag==1">非常差</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.satisfactionFlag==2">差</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.satisfactionFlag==3">一般</span>
							<span style="color: #4f9dec;cursor: pointer;" v-if="scope.row.satisfactionFlag==4">满意</span>
							<span style="color: #4f9dec;cursor: pointer;"
								v-if="scope.row.satisfactionFlag==5">非常满意</span>
						</template>
					</el-table-column>
					<el-table-column prop="createTime" label="评价时间" width="160">
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangePj" @current-change="handleCurrentChangePj"
						:page-sizes="[10, 15, 20]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="autonymData.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<el-tab-pane label="信用分明细" name="xinyongfen">
				<el-table v-loading="tableDataLoading" :data="tableDataXyf.records">
					<el-table-column prop="recordId" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="sysUserName" label="操作用户" width="150">
						<template slot-scope="scope">
							<span style="color: #4f9dec;cursor: pointer;">{{scope.row.sysUserName ? scope.row.sysUserName : '未绑定'}}</span>
						</template>
					</el-table-column>
					<el-table-column prop="lastCreditScore" label="修改前信用分"></el-table-column>
					<el-table-column prop="nextCreditScore" label="修改后信用分"></el-table-column>
					
					<el-table-column prop="num" label="信用分" width="100">
						<template slot-scope="scope">
							<span style="color: #f56c6c;" v-if="scope.row.type==2">- {{ scope.row.num }}</span>
							<span style="color: #006600;" v-if="scope.row.type==1">+ {{ scope.row.num }}</span>
						</template>
					</el-table-column>
					<el-table-column prop="reason" label="备注"></el-table-column>
					<el-table-column prop="createTime" label="创建时间" width="180"></el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChangeXyf" @current-change="handleCurrentChangeXyf"
						:page-sizes="[10, 20, 30, 40]" :page-size="size1" :current-page="page1"
						layout="total,sizes, prev, pager, next,jumper" :total="tableDataXyf.total">
					</el-pagination>
				</div>
			</el-tab-pane>
			<!-- 推广员收入 -->
			<!-- <el-tab-pane label="推广员收入" name="zhishu">

				<el-table v-loading="tableDataLoading" :data="tuanduiData.list">
				  <el-table-column fixed prop="ordersId" label="id" width="80">
				  </el-table-column>
				  <el-table-column prop="nickName" label="用户昵称" width="150">
				    <template slot-scope="scope">
				      <div style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.userId)">
				        {{scope.row.userName ? scope.row.userName : '未绑定'}}</div>
				    </template>
				  </el-table-column>
				  <el-table-column prop="avatar" label="用户头像">
				    <template slot-scope="scope">
				      <div style="margin-top: 5px;" v-if="scope.row.avatar">
				        <el-popover placement="top-start" title="" trigger="hover">
				          <img style="width: 50px; height: 50px" :src="scope.row.avatar" alt="" slot="reference">
				          <img style="width: 200px; height: 200px" :src="scope.row.avatar" alt="">
				        </el-popover>
				      </div>
					  <div v-else><img style="width: 50px; height: 50px" src = "~@/assets/img/avatar.png" alt="" slot="reference"></div>
				    </template>
				  </el-table-column>
				  <el-table-column prop="gameName" label="游戏名称">
				  </el-table-column>
				  <el-table-column prop="ordersNo" label="订单编号"></el-table-column>
				  <el-table-column prop="payMoney" label="佣金" width="160"></el-table-column>
				  <el-table-column prop="createTime" label="创建时间" width="160"></el-table-column>
				  <el-table-column fixed="right" prop="state" label="状态" width="100">
				  	<template slot-scope="scope">
				  		<span v-if="scope.row.state === 0 ">待确认</span>
				  		<span v-if="scope.row.state === 1 ">进行中</span>
				  		<span v-if="scope.row.state === 2 ">已完成</span>
				  		<span v-if="scope.row.state === 3 ">已取消</span>
				  	</template>
				  </el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange15" @current-change="handleCurrentChange15"
						:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="tuanduiData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane> -->
			<!-- 代理商收入 -->
			<!-- <el-tab-pane label="代理商收入" name="feizhishu">

				<el-table v-loading="tableDataLoading" :data="tuanduiData.list">
				  <el-table-column fixed prop="ordersId" label="id" width="80">
				  </el-table-column>
				  <el-table-column prop="nickName" label="用户昵称" width="150">
				    <template slot-scope="scope">
				      <div style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.userId)">
				        {{scope.row.userName ? scope.row.userName : '未绑定'}}</div>
				    </template>
				  </el-table-column>
				  <el-table-column prop="avatar" label="用户头像">
				    <template slot-scope="scope">
				      <div style="margin-top: 5px;" v-if="scope.row.avatar">
				        <el-popover placement="top-start" title="" trigger="hover">
				          <img style="width: 50px; height: 50px" :src="scope.row.avatar" alt="" slot="reference">
				          <img style="width: 200px; height: 200px" :src="scope.row.avatar" alt="">
				        </el-popover>
				      </div>
				  					  <div v-else><img style="width: 50px; height: 50px" src = "~@/assets/img/avatar.png" alt="" slot="reference"></div>
				    </template>
				  </el-table-column>
				  <el-table-column prop="gameName" label="游戏名称">
				  </el-table-column>
				  <el-table-column prop="ordersNo" label="订单编号"></el-table-column>
				  <el-table-column prop="payMoney" label="佣金" width="160"></el-table-column>
				  <el-table-column prop="createTime" label="创建时间" width="160"></el-table-column>
				  <el-table-column fixed="right" prop="state" label="状态" width="100">
				  	<template slot-scope="scope">
				  		<span v-if="scope.row.state === 0 ">待确认</span>
				  		<span v-if="scope.row.state === 1 ">进行中</span>
				  		<span v-if="scope.row.state === 2 ">已完成</span>
				  		<span v-if="scope.row.state === 3 ">已取消</span>
				  	</template>
				  </el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange15" @current-change="handleCurrentChange15"
						:page-sizes="[10, 20, 30, 50, 100]" :page-size="limit" :current-page="page"
						layout="total,sizes, prev, pager, next,jumper" :total="tuanduiData.totalCount">
					</el-pagination>
				</div>
			</el-tab-pane> -->
			<!-- 不可提现添加金额 -->
			<el-dialog title="修改金额" :visible.sync="dialogFormVisible1" center>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">修改类型：</span>
					<el-radio-group v-model="type">
						<el-radio :label="1">添加</el-radio>
						<el-radio :label="2">减少</el-radio>
					</el-radio-group>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">金额：</span>
					<el-input style="width:50%;" v-model="money" type="number" :min="0" :max="100" :controls="false"
						placeholder="请输入金额"></el-input>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible1 = false">取 消</el-button>
					<el-button type="primary" @click="StairNoticeTo1()">确 定</el-button>
				</div>
			</el-dialog>
			<!-- 修改年龄 -->
			<el-dialog :title="classTitle" :visible.sync="dialogFormVisible2" center>
				<div style="margin-bottom: 10px;" v-if="classType!=4&&classType!=5">
					<span style="width: 200px;display: inline-block;text-align: right;">佣金比例：</span>
					<el-input style="width:50%;" v-model="age" type="number" :min="0" :controls="false"
						:placeholder="classTitle"></el-input>
				</div>
				<div style="margin-bottom: 10px;" v-if="classType==4">
					<span style="width: 200px;display: inline-block;text-align: right;">年龄：</span>
					<el-input style="width:50%;" v-model="age" type="number" :min="0" :controls="false"
						:placeholder="classTitle"></el-input>
				</div>
				<div style="margin-bottom: 10px;" v-if="classType==5">
					<span style="width: 200px;display: inline-block;text-align: right;">代理区域：</span>
					<!-- <el-input style="width:50%;" v-model="age" type="number" :min="0" :controls="false"
						:placeholder="classTitle"></el-input> -->
						<el-cascader style="width:50%" size="large" :options="options" ref="cascaderAddr"
							v-model="storeAddress" :placeholder="storeAddre" @change="handleChange55" :value="storeAddre">
						</el-cascader>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible2 = false">取 消</el-button>
					<el-button type="primary" @click="StairNoticeTo2()">确 定</el-button>
				</div>
			</el-dialog>
			<!-- 评论列表 -->
			<el-dialog title="评论列表" :visible.sync="dialogFormVisible10" center>
				<el-table v-loading="tableDataLoading" :data="pinglunData.list">
					<el-table-column prop="id" label="编号" width="80">
					</el-table-column>
					<el-table-column prop="userName" label="评论用户" width="120">
						<template slot-scope="scope">
							　<span style="color: #4f9dec;cursor: pointer;" @click="updates(scope.row.userId)"
								v-text="scope.row.userName"></span>
						</template>
					</el-table-column>
					<el-table-column prop="avatar" label="用户头像" width="100">
						<template slot-scope="scope">
							　　<img v-if="scope.row.avatar && scope.row.avatar!=''" :src="scope.row.avatar" width="40"
								height="40" />
							<span v-else>暂无图片</span>
						</template>
					</el-table-column>
					<el-table-column prop="content" label="评论内容">
					</el-table-column>
					<el-table-column prop="createTime" label="评论时间" width="180">
					</el-table-column>
					<el-table-column label="操作" prop="id" width="100" fixed='right' align="center">
						<template slot-scope="scope">
							<el-button size="mini" type="danger" :disabled="!isAuth('locality:delete')"
								@click="pinglundelete(scope.row)">删除
							</el-button>
						</template>
					</el-table-column>
				</el-table>
				<div style="text-align: center;margin-top: 10px;">
					<el-pagination @size-change="handleSizeChange13" @current-change="handleCurrentChange13"
						:page-sizes="[10, 20, 30, 40]" :page-size="limit2" :current-page="page2"
						layout="total,sizes, prev, pager, next,jumper" :total="pinglunData.totalCount">
					</el-pagination>
				</div>
			</el-dialog>
			<!-- 修改信息 -->
			<el-dialog title="修改信息" :visible.sync="dialogFormVisibleUser" center>
				<div style="margin-bottom: 10px;" v-if="indexType==1">
					<span style="width: 200px;display: inline-block;text-align: right;">手机号：</span>
					<el-input style="width:50%;" v-model="age" :controls="false" placeholder="请输入手机号"></el-input>
				</div>
				<div style="margin-bottom: 10px;" v-if="indexType==2">
					<span style="width: 200px;display: inline-block;text-align: right;">头像：</span>
					<!-- <el-input style="width:50%;" v-model="age" type="number" :min="0" :controls="false"
						placeholder="请输入金额"></el-input> -->
					<div
						style=" width:148px;height:148px;border: 1px dashed #c0ccda;border-radius: 6px;text-align: center;line-height: 148px;display: inline-block;">
						<el-upload class="avatar-uploader" v-model="age"
							:action="$http.adornUrl('alioss/upload')" :show-file-list="false"
							:on-success="handleAvatarSuccess5">
							<img v-if="age!=''" :src="age" class="avatar"
								style="border-radius: 6px;width: 148px;height: 148px;" />
							<i v-else class="el-icon-plus avatar-uploader-icon iconss"></i>

						</el-upload>
					</div>
				</div>
				<div style="margin-bottom: 10px;" v-if="indexType==3">
					<span style="width: 200px;display: inline-block;text-align: right;">昵称：</span>
					<el-input style="width:50%;" v-model="age" :controls="false" placeholder="请输入昵称"></el-input>
				</div>
				<div style="margin-bottom: 10px;" v-if="indexType==4">
					<span style="width: 200px;display: inline-block;text-align: right;">邀请人邀请码：</span>
					<el-input style="width:50%;" v-model="age" :controls="false" placeholder="请输入邀请人邀请码"></el-input>
				</div>
				<div style="margin-bottom: 10px;" v-if="indexType==5">
					<span style="width: 200px;display: inline-block;text-align: right;">邀请码：</span>
					<el-input style="width:50%;" v-model="age" :controls="false" placeholder="请输入邀请码"></el-input>
				</div>
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisibleUser = false">取 消</el-button>
					<el-button type="primary" @click="StairUserInfo()">确 定</el-button>
				</div>
			</el-dialog>
			<!-- 修改信用分 -->
			<el-dialog title="修改信用分" :visible.sync="dialogFormVisible5" center>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">修改类型：</span>
					<el-radio-group v-model="type">
						<el-radio :label="1">添加</el-radio>
						<el-radio :label="2">减少</el-radio>
					</el-radio-group>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">分数：</span>
					<el-input style="width:50%;" v-model="age" type="number" :min="0" :controls="false"
						placeholder="请输入分数"></el-input>
				</div>
				<div style="margin-bottom: 10px;">
					<span style="width: 200px;display: inline-block;text-align: right;">修改原因：</span>
					<el-input style="width:50%;" v-model="remark" type="textarea" :rows="4"
						placeholder="请输入修改原因"></el-input>
				</div>
				
				<div slot="footer" class="dialog-footer">
					<el-button @click="dialogFormVisible5 = false">取 消</el-button>
					<el-button type="primary" @click="StairNoticeTo5()">确 定</el-button>
				</div>
			</el-dialog>
		</el-tabs>
	</div>
</template>

<script>
	import {
		provinceAndCityData,
		regionData,
		provinceAndCityDataPlus,
		regionDataPlus,
		CodeToText,
		TextToCode
	} from 'element-china-area-data'
	export default {
		data() {
			return {
				openValue: 1,
				closeValue: 0,
				state: 0,
				limit: 10,
				page: 1,
				limit2: 10,
				page2: 1,
				userId: '',
				money: '',
				title: '',
				content: '',
				phone: '',
				startTime: '',
				endTime: '',
				invitationCode: '',
				feiDatamin: '',
				info: {
					stockDate: this.getNowTime(), //日期
				},
				info2: {
					stockDate2: this.getNowTime2(), //日期
				},
				tablejifen: '',
				autonymData: {},
				tablemoney: {},
				tablenum: {},
				tableData: {},
				userData: {},
				fangkeData: {},
				tableDatamin: [],
				withdrawData: {},
				walletData: {},
				baozhengjinData:{},
				rechargeData: {},
				sendData: [],
				takeData: {},
				dizhiData: {},
				jiedanData: {},
				dingdanData: {},
				fensiData: {},
				guanzhuData: {},
				wannengData: {},
				wannengOrderData: {},
				activeName: 'first',
				dialogFormVisible: false,
				dialogFormVisible1: false,
				dialogFormVisible2: false,
				dialogFormVisible10: false,
				tableDataLoading: true,
				relation_id: '',
				relationId: '',
				tkstatus: '',
				invitation: '',
				nowMonthOver: '',
				lastMonthOver: '',
				nowMonthPaid: '',
				lastMonthPaid: '',
				nowMonthOrderNumber: '',
				nowDayOrderNumber: '',
				hasCash: '',
				search: '',
				classifyIds: 0,
				statusId: -1,
				myPhone: '',
				type: '',
				renwuId: '',
				pinglunData: {},
				tousuData: {},
				states: '',
				tuanduiData: {},
				types: 1,
				typesList: [{
						type: 1,
						name: '推广员'
					},
					{
						type: 2,
						name: '代理商'
					}
				],
				tableDataCl: {},
				indexType: '',
				classifys:10,
				dailituiguangData:{},
				classType:0,
				classTitle:'',
				province: '',
				city: '', //市
				district: '', //区
				options: regionDataPlus,
				storeAddre: '请选择区域',
				storeAddress: [],

				dialogFormVisibleUser:false,
				indexType: '',
				age: '',
				
				inviterCode:'',
				autonymData: {},
				typesPl: 1,
				dialogFormVisible5:false,
				type:'',
				tableDataXyf:{},
				size1:10,
				page1: 1,
				remark:'',
			}
		},
		methods: {
			// 返回上一级
			prev() {
				this.$router.back()
			},
			// 详情跳转
			updates(userId) {
				if(userId){
					this.$router.push({
						path: '/userDetail1',
						query: {
							userId: userId
						}
					})
				}
				
			},
			// 详情跳转
			updates1(row) {
				this.$router.push({
					path: '/userDetail1',
					query: {
						userId: row.ordersUserId
					}
				})
			},
			//处理默认选中当前日期
			getNowTime() {
				var now = new Date()
				var year = now.getFullYear() //得到年份
				var month = now.getMonth() //得到月份
				var date = now.getDate() //得到日期
				month = month + 1
				month = month.toString().padStart(2, '0')
				date = date.toString().padStart(2, '0')
				var defaultDate = `${year}-${month}-${date}`
				return defaultDate
				this.$set(this.info, 'stockDate', defaultDate)
			},
			//处理默认选中当前日期
			getNowTime2() {
				var now = new Date()
				var year = now.getFullYear() //得到年份
				var month = now.getMonth() - now.getMonth() //得到月份
				var date = now.getDate() - now.getDate() + 1 //得到日期
				month = month + 1
				month = month.toString().padStart(2, '0')
				date = date.toString().padStart(2, '0')
				var defaultDate = `${year}-${month}-${date}`
				return defaultDate
				this.$set(this.info, 'stockDate', defaultDate)
			},
			// tabs切换
			handleClick(tab, event) {
				if (tab._props.label == '用户详情') {
					this.dataSelect()
					// this.autonymSelect()
				}

				if (tab._props.label == '提现记录') {
					this.limit = 10,
						this.page = 1,
						this.withdrawSelect()
				}
				if (tab._props.label == '钱包明细') {
					this.limit = 10
					this.page = 1
					this.walletSelect()
				}
				if (tab._props.label == '保证金明细') {
					this.limit = 10
					this.page = 1
					this.baozhengjinSelect()
				}

				if (tab._props.label == '充值明细') {
					this.limit = 10
					this.page = 1
					this.rechargeSelect()
				}
				if (tab._props.label == '我的接单') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.jiedanSelect()
				}
				if (tab._props.label == '我的发布') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.takeSelect()
				}
				if (tab._props.label == '我的订单') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.dingdanSelect()
				}
				if (tab._props.label == '我的优惠券') {
					this.limit = 10
					this.page = 1
					this.state = 8
					this.flag = 1
					this.userSelect()
				}
				if (tab._props.label == '我的粉丝') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.fensiSelect()
				}
				if (tab._props.label == '我的关注') {
					this.limit = 10
					this.page = 1
					this.state = 0
					this.guanzhuSelect()
				}
				if (tab._props.label == '我的访客') {
					this.limit = 10
					this.page = 1
					this.state = 8
					this.flag = 1
					this.fangkeSelect()
				}
				if (tab._props.label == '我的地址') {
					this.limit = 10
					this.page = 1
					this.state = 8
					this.flag = 1
					this.dizhiSelect()
				}
				if (tab._props.label == '我的万能服务') {
					this.autonymSelect()
				}
				if (tab._props.label == '万能服务订单') {
					this.autonymOrderSelect()
				}
				if (tab._props.label == '我的投诉') {
					this.limit = 10
					this.page = 1
					this.states = 3
					this.tousuSelect()
				}
				if (tab._props.label == '我的团队') {
					this.limit = 10
					this.page = 1
					this.types = 1
					this.tuanduiSelect()
				}
				if (tab._props.label == '我的车辆') {
					this.limit = 10
					this.page = 1
					this.cheliangSelect()
				}
				if (tab._props.label == '推广员收益明细') {
					this.limit = 10
					this.page = 1
					this.classifys = 10
					this.dailituiguangSelect()
				}
				if (tab._props.label == '代理商收益明细') {
					this.limit = 10
					this.page = 1
					this.classifys = 20
					this.dailituiguangSelect()
				}
				if (tab._props.label == '我的评价') {
					this.page = 1
					this.limit = 10
					this.typesPl = 1
					this.autonymSelectPj()
				}
				if (tab._props.label == '我收到的评价') {
					this.page = 1
					this.limit = 10
					this.typesPl = 2
					this.autonymSelectPj()
				}
				if (tab._props.label == '信用分明细') {
					this.size1 = 10
					this.page1 = 1
					this.xinyongSelect()
				}

			},
			handleSizeChange(val) {
				this.limit = val
				this.teamSelect()
			},
			handleCurrentChange(val) {
				this.page = val
				this.teamSelect()
			},
			handleSizeChange1(val) {
				this.limit = val
				this.userSelect()
			},
			handleCurrentChange1(val) {
				this.page = val
				this.userSelect()
			},
			handleSizeChange2(val) {
				this.limit = val
				this.withdrawSelect()
			},
			handleCurrentChange2(val) {
				this.page = val
				this.withdrawSelect()
			},
			handleSizeChange3(val) {
				this.limit = val
				this.walletSelect()
			},
			handleCurrentChange3(val) {
				this.page = val
				this.walletSelect()
			},
			handleSizeChange4(val) {
				this.limit = val
				this.rechargeSelect()
			},
			handleCurrentChange4(val) {
				this.page = val
				this.rechargeSelect()
			},
			handleSizeChange5(val) {
				this.limit = val
				this.sendSelect()
			},
			handleCurrentChange5(val) {
				this.page = val
				this.sendSelect()
			},
			handleSizeChange6(val) {
				this.limit = val
				this.jiedanSelect()
			},
			handleCurrentChange6(val) {
				this.page = val
				this.jiedanSelect()
			},

			handleSizeChange7(val) {
				this.limit = val
				this.feiSelect()
			},
			handleCurrentChange7(val) {
				this.page = val
				this.feiSelect()
			},
			handleSizeChange8(val) {
				this.limit = val
				this.fensiSelect()
			},
			handleCurrentChange8(val) {
				this.page = val
				this.fensiSelect()
			},
			handleSizeChange9(val) {
				this.limit = val
				this.guanzhuSelect()
			},
			handleCurrentChange9(val) {
				this.page = val
				this.guanzhuSelect()
			},
			handleSizeChange10(val) {
				this.limit = val
				this.dingdanSelect()
			},
			handleCurrentChange10(val) {
				this.page = val
				this.dingdanSelect()
			},
			handleSizeChange11(val) {
				this.limit = val
				this.dizhiSelect()
			},
			handleCurrentChange11(val) {
				this.page = val
				this.dizhiSelect()
			},
			handleSizeChange12(val) {
				this.limit = val
				this.tuanduiSelect()
			},
			handleCurrentChange12(val) {
				this.page = val
				this.tuanduiSelect()
			},
			handleSizeChange13(val) {
				this.limit2 = val
				this.pinglunSelect(this.renwuId)
			},
			handleCurrentChange13(val) {
				this.page2 = val
				this.pinglunSelect(this.renwuId)
			},
			handleSizeChange14(val) {
				this.limit = val
				this.autonymSelect()
			},
			handleCurrentChange14(val) {
				this.page = val
				this.autonymSelect()
			},
			handleSizeChange15(val) {
				this.limit = val
				this.autonymOrderSelect()
			},
			handleCurrentChange15(val) {
				this.page = val
				this.autonymOrderSelect()
			},
			handleSizeChange23(val) {
				this.limit = val
				this.tousuSelect()
			},
			handleCurrentChange23(val) {
				this.page = val
				this.tousuSelect()
			},
			handleSizeChangeCl(val) {
				this.limit = val
				this.cheliangSelect()
			},
			handleCurrentChangeCl(val) {
				this.page = val
				this.cheliangSelect()
			},
			handleSizeChangeBzj(val) {
				this.limit = val
				this.baozhengjinSelect()
			},
			handleCurrentChangeBzj(val) {
				this.page = val
				this.baozhengjinSelect()
			},
			handleSizeChangeDl(val) {
				this.limit = val
				this.dailituiguangSelect()
			},
			handleCurrentChangeDl(val) {
				this.page = val
				this.dailituiguangSelect()
			},
			handleSizeChangePj(val) {
				this.limit = val
				this.autonymSelectPj()
			},
			handleCurrentChangePj(val) {
				this.page = val
				this.autonymSelectPj()
			},
			handleSizeChangeXyf(val) {
				this.size1 = val
				this.xinyongSelect()
			},
			handleCurrentChangeXyf(val) {
				this.page1 = val
				this.xinyongSelect()
			},
			timeDate2() {
				this.rechargeSelect()
			},
			// 可提现金额
			withdraw(id, val) {
				if (val == 0) {
					this.$message({
						message: '可提现金额为0元',
						type: 'error',
						duration: 1500,
						onClose: () => {
							this.dataSelect()
						}
					})
				} else {
					this.$confirm(`确定要推送提现消息吗?`, '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {
						this.$http({
							url: this.$http.adornUrl(`user/notification/${id}`),
							method: 'post',
							data: this.$http.adornData({})
						}).then(({
							data
						}) => {
							if(data.code==0){
								this.$message({
									message: '推送成功',
									type: 'success',
									duration: 1500,
									onClose: () => {
										this.dataSelect()
									}
								})
							}else {
						this.$message({
							message: data.msg,
							type: 'error',
							duration: 1500,
							onClose: () => {
							}
						})
					}
							
						})
					}).catch(() => {})
				}

			},
			// 不可提现金额充值
			rechargenone(userId, index) {
				this.indexType = index
				this.type = ''
				this.money = ''
				this.dialogFormVisible1 = true
			},
			StairNoticeTo1() {
				let userId = this.$route.query.userId
				if (this.type == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请选择修改类型',
						type: 'warning'
					})
					return
				}
				if (this.money == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入金额',
						type: 'warning'
					})
					return
				}
				if (this.indexType == 3) {
					this.$http({
						url: this.$http.adornUrl('user/updateSafetyMoney'),
						method: 'post',
						params: this.$http.adornParams({
							'userId': userId,
							'type': this.type,
							'money': this.money,
							'content': ''
						})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.type = ''
									this.money = ''
									this.dataSelect()
								}
							})
							this.dialogFormVisible1 = false
						} else {
							this.$message.error(data.msg)
						}
					})
				} else {
					this.$http({
						url: this.$http.adornUrl(`user/addCannotMoney/${userId}/${this.money}/${this.type}`),
						method: 'post',
						data: this.$http.adornData({})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.type = ''
									this.money = ''
									this.dataSelect()
								}
							})
							this.dialogFormVisible1 = false
						} else {
							this.$message.error(data.msg)
						}
					})
				}

			},
			StairNoticeTo2() {
				let userId = this.$route.query.userId
				let datas = {}
				datas.userId = userId
				if(this.classType==7){
					datas.rate = this.age
				}
				if(this.classType==0){
					datas.zhiRate = this.age
				}
				if(this.classType==1){
					datas.feiRate = this.age
				}
				if(this.classType==2){
					if(this.age==1){
						this.age = 0
					}else{
						this.age = 1
					}
					datas.isPromotion = this.age
				}
				if(this.classType==3){
					if(this.age==1){
						this.age = 0
					}else{
						this.age = 1
					}
					datas.isAgent = this.age
				}
				if(this.classType==4){
					datas.age = this.age
				}
				if(this.classType==6){
					if(this.age==1){
						this.age = 0
					}else{
						this.age = 1
					}
					datas.shopState = this.age
				}
				if(this.classType==5){
					if(this.city==''){
						datas.province = this.province
						datas.city = ''
						datas.district = ''
					}else if(this.district==''){
						datas.province = this.province
						datas.city = this.city
						datas.district = ''
					}else{
						datas.province = this.province
						datas.city = this.city
						datas.district = this.district
					}
						
				this.$http({
					url: this.$http.adornUrl('user/updateAgent'),
					method: 'post',
					data: this.$http.adornData(datas)
				}).then(({
					data
				}) => {
					console.log('data', data)
					if(data.code==0){
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisible2 = false
								this.dataSelect()
							}
						})
					}else{
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {
							}
						})
					}
					
				})


				}else{
					this.$http({
						url: this.$http.adornUrl('user/updateUserByUserId'),
						method: 'post',
						data: this.$http.adornData(datas)
					}).then(({
						data
					}) => {
						console.log('data', data)
						if(data.code==0){
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.dialogFormVisible2 = false
									this.dataSelect()
								}
							})
						}else{
							this.$message({
								message: data.msg,
								type: 'warning',
								duration: 1500,
								onClose: () => {
								}
							})
						}
						
					})
				}
				
			},
			// 更改状态
			stateChange(userId) {
				this.$confirm(`确定要更改用户状态吗?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl(`user/updateUserStatusByUserId?userId=${userId}`),
						method: 'get',
						data: this.$http.adornData({})
					}).then(({
						data
					}) => {
						if(data.code==0){
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.dataSelect()
								}
							})
						}else {
						this.$message({
							message: data.msg,
							type: 'error',
							duration: 1500,
							onClose: () => {
							}
						})
					}
						
					})
				}).catch(() => {})
			},
			// 修改性别
			sexChange(userId, sex) {
				var sexs = 1;
				if (sex == 1) {
					sexs = 2
				}
				if (sex == 2) {
					sexs = 1
				}
				this.$confirm(`确定要更改用户性别吗?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl('user/updateUserByUserId'),
						method: 'post',
						data: this.$http.adornData({
							'userId': userId,
							'sex': sexs
						})
					}).then(({
						data
					}) => {
						console.log('data', data)
						if(data.code==0){
							this.$message({
								message: '修改成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.dataSelect()
								}
							})
						}else {
						this.$message({
							message: data.msg,
							type: 'error',
							duration: 1500,
							onClose: () => {
							}
						})
					}
						
					})
				}).catch(() => {})
			},
			ageChange(index,userId, age) {
				this.classType = index
				this.age = age
				this.province = ''
				this.city = ''
				this.district = ''
				if(index==7){
					this.classTitle = '陪诊佣金比例'
					this.dialogFormVisible2 = true
				}
				if(index==0){
					this.classTitle = '推广员佣金比例'
					this.dialogFormVisible2 = true
				}
				if(index==1){
					this.classTitle = '代理商佣金比例'
					this.dialogFormVisible2 = true
				}
				if(index==2){
					this.$confirm(`确定要更改推广员状态吗?`, '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {
						this.StairNoticeTo2()
					}).catch(() => {})

				}
				if(index==3){
					this.$confirm(`确定要更改代理商状态吗?`, '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {
						this.StairNoticeTo2()
					}).catch(() => {})
				}
				if(index==4){
					this.classTitle = '年龄'
					this.dialogFormVisible2 = true
				}
				if(index==5){

					this.classTitle = '代理区域'
					this.storeAddress = []
					this.dialogFormVisible2 = true
				}
				if(index==6){
					this.$confirm(`确定要更改师傅接单状态吗?`, '提示', {
						confirmButtonText: '确定',
						cancelButtonText: '取消',
						type: 'warning'
					}).then(() => {
						this.StairNoticeTo2()
					}).catch(() => {})
				}


			},
			// 获取数据列表
			dataSelect() {
				let userId = this.$route.query.userId
				if(userId!=null&&userId!=undefined){
					this.$http({
						url: this.$http.adornUrl(`user/${userId}`),
						method: 'get',
						params: this.$http.adornParams({})
					}).then(({
						data
					}) => {
						if (data.code === 0) {
							let returnData = data.data
							this.tablenum = returnData
							this.tablemoney = returnData
							this.tableData = returnData.userEntity
							this.phone = returnData.userEntity.phone
							this.invitationCode = returnData.userEntity.invitationCode
						}else{
							this.$message({
								message: data.msg,
								type: 'warning',
								duration: 1500,
								onClose: () => {
								}
							})
						}
					})
				}
				
			},
			// 获取团队成员
			teamSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('user/selectInviteByUserIdLists'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.tableDatamin = returnData
				})
			},
			// 非直属
			feiSelect() {
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('user/selectInvitationCodeByUserIdLists'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'invitationCode': this.invitationCode
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.feiDatamin = returnData
				})
			},
			// 我的优惠券数据
			userSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('admin/couponUser/getMyCouponList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.userData = returnData
				})
			},
			// 获取用户提现记录
			withdrawSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('cash/selectPayDetails'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.withdrawData = returnData
				})
			},
			// 获取钱包明细
			walletSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('Details/queryUserMoneyDetails'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.walletData = returnData
				})
			},
			//  保证金明细
			baozhengjinSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('Details/queryUserMoneyDetails'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						'classify':4
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.baozhengjinData = returnData
				})
			},
			// 获取充值明细
			rechargeSelect() {
				if (this.endTime == '') {
					this.endTime = this.info.stockDate
				}
				if (this.startTime == '') {
					this.startTime = this.info2.stockDate2
				}
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('cash/selectUserRechargeByUserId'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'endTime': this.endTime,
						'startTime': this.startTime,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					if (data.code == 0) {

						let returnData = data.data
						this.rechargeData = returnData
					}else {
						this.$message({
							message: data.msg,
							type: 'error',
							duration: 2500,
							onClose: () => {
								this.tableDataLoading = false
							}
						})
					}
				})
			},
			// 获取接单
			sendSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('help/selectRunHelpOrder'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'status': this.state,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.sendData = returnData
				})
			},
			// 我的发布
			takeSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('orderTaking/queryAllOrderTaking'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.takeData = returnData
					for (var i in this.takeData.list) {
						if (this.takeData.list[i].detailsImg) {
							this.takeData.list[i].detailsImg = this.takeData.list[i].detailsImg.split(',')
						}
					}
				})
			},
			// 我的接单
			jiedanSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('orders/selectMyTakeOrders'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.jiedanData = returnData
				})
			},
			// 我的订单
			dingdanSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('orders/queryOrders'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.dingdanData = returnData
				})
			},
			// 万能服务
			autonymSelect() {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('help/selectCreateHelpOrder'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'status': 0,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.wannengData = returnData
				})
			},
			// 万能服务订单
			autonymOrderSelect() {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('help/selectRunHelpOrder'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'status': 0,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.wannengOrderData = returnData
				})
			},
			// 信息数据
			InformationSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl(`information/selectInformationList`),
					method: 'get',
					params: this.$http.adornParams({
						'userId': userId,
						'page': this.page,
						'limit': this.limit,
						'search': this.search,
						'classify': this.classifyIds,
						'status': this.statusId,
						'phone': this.myPhone
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					for (var i in data.data.records) {
						if (data.data.records[i].img) {
							data.data.records[i].imgs = data.data.records[i].img.split(',')
						}

					}
					let returnData = data.data
					this.userData = returnData


				})
			},
			// 查询
			phoneSelect() {
				this.page = 1
				this.InformationSelect()
			},
			// 重置
			cleans2() {
				this.status = -1
				this.classify = 0
				this.phone = ''
				this.search = ''
				this.page = 1
				this.InformationSelect()
			},
			// 我的访客
			fangkeSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('userBrowse/myVisitor'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.fangkeData = returnData
				})
			},
			// 我的地址
			dizhiSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('address/selectAddressListById'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.dizhiData = returnData
				})
			},
			// 我的粉丝
			fensiSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('userFollow/selectFans'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.fensiData = returnData
				})
			},
			// 我的关注
			guanzhuSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('userFollow/selectMyFollow'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.guanzhuData = returnData
				})
			},
			// 状态
			change(val, userId) {
				this.$http({
					url: this.$http.adornUrl(`user/updateUserStateById?userId=${userId}`),
					method: 'post',
					data: this.$http.adornData({})
				}).then(({
					data
				}) => {
					if(data.code==0){
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.fangkeSelect()
							}
						})
					}else {
						this.$message({
							message: data.msg,
							type: 'error',
							duration: 1500,
							onClose: () => {
							}
						})
					}
					
				})
			},
			//删除足迹
			deleteuser(row) {
				let delid = row.id
				this.$confirm(`确定删除此条信息?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl('userBrowse/deleteMyBrowse?id=' + delid),
						method: 'post',
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '删除成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.userSelect()
								}
							})
						} else {
							this.$message({
								message: data.msg,
								type: 'warning',
								duration: 1500,
								onClose: () => {}
							})
						}
					})
				})
			},
			// 删除我的访客
			deleteuser1(row) {
				let delid = row.id
				this.$confirm(`确定删除此条信息?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl('userBrowse/deleteMyVisitor?id=' + delid),
						method: 'post',
						params: this.$http.adornData({
							'id': delid
						})
					}).then(({
						data
					}) => {
						if (data.code == 0) {
							this.$message({
								message: '删除成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.fangkeSelect()
								}
							})
						} else {
							this.$message({
								message: data.msg,
								type: 'warning',
								duration: 1500,
								onClose: () => {}
							})
						}
					})
				})
			},
			// 关注/取关
			select(row) {
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('userFollow/insert?userId=' + userId + '&followUserId=' + row.userId),
					method: 'post',
					params: this.$http.adornData({})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.$message({
							message: '操作成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.fensiSelect()
								this.guanzhuSelect()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {}
						})
					}
				})
			},
			// 查看评论
			plCompile(row) {
				console.log(row)
				this.renwuId = row.id
				this.dialogFormVisible10 = true
				this.pinglunSelect(row.id)
			},
			// 用户评论列表
			pinglunSelect(id) {
				this.userId = this.$store.state.user.id
				this.$http({
					url: this.$http.adornUrl('takingComment/selectOrderTakingComment'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page2,
						'limit': this.limit2,
						'id': id
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data
					this.pinglunData = returnData


				})
			},
			// 删除评论信息
			pinglundelete(row) {
				let delid = row.id
				this.$confirm(`确定删除此条信息?`, '提示', {
					confirmButtonText: '确定',
					cancelButtonText: '取消',
					type: 'warning'
				}).then(() => {
					this.$http({
						url: this.$http.adornUrl(`takingComment/deleteOrderTakingComment/${delid}`),
						method: 'post',
						params: this.$http.adornData({})
					}).then(({
						data
					}) => {
						if(data.code==0){
							this.$message({
								message: '删除成功',
								type: 'success',
								duration: 1500,
								onClose: () => {
									this.pinglunSelect(this.renwuId)
								}
							})
						}else {
						this.$message({
							message: data.msg,
							type: 'error',
							duration: 1500,
							onClose: () => {
							}
						})
					}
						
					})
				}).catch(() => {})
			},
			// 我的投诉
			tousuSelect() {
				this.tableDataLoading = true
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('message/selectMessageByUserId'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'state': this.states,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					for (var i in data.data.list) {
						if (data.data.list[i].image) {
							data.data.list[i].image = data.data.list[i].image.split(',')
						}

					}
					let returnData = data.data;
					this.tousuData = returnData;
				})
			},
			// 我的tuandui
			tuanduiSelect() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('orders/selectTeamUserList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						'type': this.types
						// 'chatConversationId': this.chatConversationId
						// 'content': this.content
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.tuanduiData = returnData
				})
			},
			// 等级选择事件
			animeDat(state) {
				this.page = 1
				this.tuanduiSelect()
			},
			// 我的团队收入
			tuanduiSelect1() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('orders/selectTeamOrdersList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userId': userId,
						'type': this.types
						// 'chatConversationId': this.chatConversationId
						// 'content': this.content
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.tuanduiData = returnData
				})
			},
			// 我的车辆
			cheliangSelect() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('car/selectCarList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'userName': '',
						'phone': '',
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.tableDataCl = returnData
				})
			},
			// 代理商/推广员收益明细
			dailituiguangSelect() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('Details/queryUserMoneyDetails'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'classify': this.classifys,
						'userId': userId
					})
				}).then(({
					data
				}) => {
					this.tableDataLoading = false
					let returnData = data.data;
					this.dailituiguangData = returnData
				})
			},
			handleChange55(value) {
				value = this.$refs['cascaderAddr'].currentLabels
				// if(this.tableData.province){
				// 	this.province = value[0]
				// }
				// if(this.tableData.city){
				// 	if (this.city == '市辖区') {
				// 		this.city = this.province
				// 	}else{
				// 		this.city = value[1]
				// 	}
				// }
				// if(this.tableData.district){
				// 	this.district = value[2]
				// }
				console.log('value-----',value)
				if(value[0]=='全部'){
					this.province = ''
					this.city = ''
					this.district = ''
				}else if(value[1]=='全部'){
					this.province = value[0]
					this.city = ''
					this.district = ''
				}else if(value[2]=='全部'){
					this.province = value[0]
					this.city = value[1]
					if (this.city == '市辖区') {
						this.city = this.province
					}
					this.district = ''
				}else{
					this.province = value[0]
					this.city = value[1]
					this.district = value[2]
					if (this.city == '市辖区') {
						this.city = this.province
					}
				}


				// this.province = value[0]
				// this.city = value[1]
				// this.district = value[2]


				console.log(this.$refs['cascaderAddr'].currentLabels)
			},
			// 修改信息弹框
			infoChange(age, index) {
				this.indexType = index
				this.age = age
				this.dialogFormVisibleUser = true
			},
			// 修改用户信息
			StairUserInfo() {
				let userId = this.$route.query.userId
				let datas = {}
				datas.userId = userId
				if(this.indexType==1){
					console.log('this.age.length',this.age.length)
					if(this.age.length!==11){
						this.$notify({
							title: '提示',
							duration: 1800,
							message: '请输入有效手机号',
							type: 'warning'
						});
						return
					}
					datas.phone = this.age
				}
				if(this.indexType==2){
					datas.avatar = this.age
				}
				if(this.indexType==3){
					datas.userName = this.age
				}
				if(this.indexType==4){
					datas.inviterCode = this.age
				}
				if(this.indexType==5){
					datas.invitationCode = this.age
				}
				
				this.$http({
					url: this.$http.adornUrl('user/updateUserByUserId'),
					method: 'post',
					data: this.$http.adornData(datas)
				}).then(({
					data
				}) => {
					console.log('data', data)
					if(data.code==0){
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisibleUser = false
								this.dataSelect()
							}
						})
					}else{
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {
							}
						})
					}

				})
			},
			// 头像上传
			handleAvatarSuccess5(file) {
				this.age = file.data;
			},
			// 我的评价
			autonymSelectPj() {
				let userId = this.$route.query.userId
				// if (this.types == 1) {
				// 	var userid1 = userId
				// 	var userid2 = ''
				// } else {
				// 	var userid1 = ''
				// 	var userid2 = userId
				// }
				var datas = {}
				datas.page = this.page
				datas.limit = this.limit
				if (this.typesPl == 1) {
					datas.userId = userId
				}
				if (this.typesPl == 2) {
					datas.riderUserId = userId
				}
				this.$http({
					url: this.$http.adornUrl('admin/evaluate/getUserEvaluate'),
					method: 'get',
					params: this.$http.adornParams(datas)
				}).then(({
					data
				}) => {
			
					this.tableDataLoading = false
					let returnData = data.data
					this.autonymData = returnData
				})
			},
			ageChange2(userId, creditScore) {
				this.type = ''
				this.age = ''
				this.dialogFormVisible5 = true
			},
			StairNoticeTo5() {
				if (this.type == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请选择修改类型',
						type: 'warning'
					});
					return
				}
				this.tableData.creditScore = Number(this.tableData.creditScore)
				this.age = Number(this.age)
				var jia = this.tableData.creditScore + this.age
				var jian = this.tableData.creditScore - this.age
				if (this.age == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入分数',
						type: 'warning'
					});
					return
				}
				if(this.type == 1){
					if (jia > 10) {
						this.$notify({
							title: '提示',
							duration: 1800,
							message: '信用分最高为10',
							type: 'warning'
						});
						return
					}
				}
				if(this.type == 2){
					if (jian < 0) {
						this.$notify({
							title: '提示',
							duration: 1800,
							message: '信用分最低为0',
							type: 'warning'
						});
						return
					}
				}
				
				if (this.remark == '') {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '请输入修改原因',
						type: 'warning'
					});
					return
				}
				if (this.remark.length >100) {
					this.$notify({
						title: '提示',
						duration: 1800,
						message: '修改原因字数不能超过100字',
						type: 'warning'
					});
					return
				}
				let userId = this.$route.query.userId
				this.$http({
					url: this.$http.adornUrl('user/updateUserCredit'),
					method: 'post',
					params: this.$http.adornParams({
						'userId':userId,
						'score':this.age,
						'type': this.type,
						'remark':this.remark
					})
					// method: 'post',
					// params: this.$http.adornParams({
					// 	'artificerId': this.tablenum.artificer.artificerId,
					// 	'creditScore': this.age,
					// 	'type': this.type
					// })
				}).then(({
					data
				}) => {
					console.log('data', data)
					if (data.code == 0) {
						this.$message({
							message: '修改成功',
							type: 'success',
							duration: 1500,
							onClose: () => {
								this.dialogFormVisible5 = false
								this.dataSelect()
							}
						})
					} else {
						this.$message({
							message: data.msg,
							type: 'warning',
							duration: 1500,
							onClose: () => {}
						})
					}
				})
			},
			// 信用分明细数据
			xinyongSelect() {
				let userId = this.$route.query.userId
				this.tableDataLoading = true
				this.$http({
					url: this.$http.adornUrl('admin/creditRecord/getCreditRecordList'),
					method: 'get',
					params: this.$http.adornParams({
						'page': this.page,
						'limit': this.limit,
						'riderUserName': '',
						'riderUserId':userId,
						'userId': userId,
						'riderPhone': ''
					})
				}).then(({
					data
				}) => {
					if (data.code == 0) {
						this.tableDataLoading = false
						let returnData = data.data
						this.tableDataXyf = returnData
					} else {
						this.$notify({
							title: '提示',
							duration: 1800,
							message: data.msg,
							type: 'warning'
						});
					}
				})
			},
		},
		mounted() {
			this.dataSelect()
		},
		watch: {
			'$route': 'dataSelect'
		}
	}
</script>

<style scoped="scoped">
	.detailtabel h2 {
		margin-top: 0;
	}

	.detailtabel .table_main table {
		width: 100%;
	}

	.detailtabel .table_main {
		border: 1px solid #e8e8e8;
	}

	.detailtabel table tr {
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table tr th {
		background-color: #fafafa;
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table tr td {
		padding: 16px 24px;
		border-right: 1px solid #e8e8e8;
		border-bottom: 1px solid #e8e8e8;
	}

	.detailtabel table th {
		color: rgba(0, 0, 0, .85);
		font-weight: 400;
		font-size: 14px;
		line-height: 1.5;
	}

	.border-rt {
		border-right: none !important;
	}

	.border-bt {
		border-bottom: none !important;
	}
</style>
